package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.enums.QuestionBankTypeEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

/**
 * 题库学习
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 */
@Data
@TableName(value = "QUESTION_BANK_STUDY",autoResultMap = true)
@Entity(name = "QUESTION_BANK_STUDY")
@AccEntity(value = "题库学习", type = EntityType.SERVICE_ENTITY)
public class QuestionBankStudy extends DomainBaseEntity<QuestionBankStudy> {
    /**
     * 用户id
     */
    @Column()
    private Long userId;

    /**
     * 题库id
     */
    @Column()
    private Long questionBankId;

    /**
     * 题库分类id
     */
    private Long typeId;

    /**
     * 需要完成的题目数量
     */
    @Column()
    private Integer needFinishQuestionNum;

    /**
     * 已完成题目数量
     */
    @Column()
    private Integer finishQuestionNum;

    /**
     * 学习状态：0进行中 1已结束
     */
    @Column()
    private Integer status;

}
